package com.suxin.rpc;

import com.suxin.domain.BaseDomain;
import feign.*;

import java.util.Map;

/**
 * @Classname TPMRpc
 * @Description [ TODO ]
 * @Author Tang
 * @Date 2020/11/18 11:23
 * @Created by ASUS
 */

public interface TPMRpc {

    @RequestLine("POST /api/wms.jsp")
    @Headers("Content-Type: application/json")
    @Body(value =
            "appId={appId}&secret={secret}&timeStamp={timeStamp}" +
            "&type={type}&start_date={start_date}&end_date={end_date}"
    )
    public Map<String, String> displayData(@Param("appId") String appId,@Param("secret") String secret,
                                           @Param("timeStamp") String timeStamp,@Param("type") String type,
                                           @Param("start_date") String start_date,@Param("end_date") String end_date);


    @RequestLine("POST /api/wms.jsp")
    @Headers("Content-Type: application/json")
    public Map<String, String> displayData(BaseDomain baseDomain);

}